package com.heyun.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.heyun.bean.HeyunOppoManage;
import com.heyun.dao.HeyunOppoManageDao;
import com.heyun.service.HeyunOppoManageService;
/**
 * @author 成栋梁
 *
 */
@Service
public class HeyunOppoManageImpl implements HeyunOppoManageService {
	
	
  @Autowired
   private HeyunOppoManageDao hyomd;
	
	@Override
	public int insertOppoManage(HeyunOppoManage hyom) {
		// TODO Auto-generated method stub
		int a=hyomd.insertOppoManage(hyom);
		return a;
	}

	@Override
	public int updateOppo(HeyunOppoManage hyom) {
		// TODO Auto-generated method stub
		int a=hyomd.updateOppo(hyom);
		return a;
	}

	@Override
	public int updateOppoOwner(Map map) {
		// TODO Auto-generated method stub
		int a=hyomd.updateOppoOwner(map);
		return a;
	}

	@Override
	public int removeOppo(int oppoManageId) {
		// TODO Auto-generated method stub
		int a = hyomd.removeOppo(oppoManageId);
		return a;
	}

	@Override
	public List<HeyunOppoManage> listAllOppo() {
		// TODO Auto-generated method stub
		List<HeyunOppoManage> list=hyomd.listAllOppo();
		return list;
	}

	@Override
	public HeyunOppoManage getOppo(int oppoManageId) {
		// TODO Auto-generated method stub
		HeyunOppoManage hyom=hyomd.getOppo(oppoManageId);
		return hyom;
	}

	@Override
	public List<HeyunOppoManage> searchOppo(Map map) {
		// TODO Auto-generated method stub
		List<HeyunOppoManage> list=hyomd.searchOppo(map);
		return list;
	}
    
}
